package com.king.first.sink;

import org.apache.flink.streaming.api.CheckpointingMode;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.TableEnvironment;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;
import org.apache.flink.table.catalog.hive.HiveCatalog;

/**
 * @author wdl
 * @date 2022/4/20 11:33
 */
public class KafkaToHive {

    public static void main(String[] args) {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        StreamTableEnvironment tableEnv = StreamTableEnvironment.create(env);

        env.enableCheckpointing(10000L, CheckpointingMode.EXACTLY_ONCE);

        System.setProperty("HADOOP_USER_NAME","saga");

        String hive_conf_dir = "/opt/module/hive-3.1.2/conf";
        String hive_database_name = "";
        String hive_table_name = "";


    }
}
